﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_QuanHuyen.ascx.cs" Inherits="WebApplication.Admins.Controls.UCQuanHuyen" %>
<%@ Register src="UC_pages.ascx" tagname="UC_pages" tagprefix="uc1" %>
<div class="t_news">
    <div class="t_titles">
        Quản Lý Quận Huyện
    </div>
    <div class="t_toolbar">
        <input type="button" name="btnThemQH" value="Thêm Quận Huyện " class="buttons" onclick="location.href='EditQuanHuyen.aspx'"
            runat="server" with="50px"/>
        <asp:Button Text="Xóa Quận Huyện" runat="server" ID="btnXoa" CssClass="buttons" 
            onclick="btnXoa_Click"/>
            <asp:Button Text="Tìm Kiếm" runat="server" ID="btnTimKiem" 
            CssClass="buttons" onclick="btnTimKiem_Click" />
        <br />
        <div class="timkiem">
            <asp:Label Text="Theo Tên :" runat="server" ID="lblTen" /><asp:TextBox runat="server"
                CssClass="textboxs" ID="txtTen" />
                <asp:Button Text="Tìm" runat="server" ID="btnTim" CssClass="buttons" 
                onclick="btnTim_Click" />
                <br />
            <asp:Label Text="" ID="lblThongBao" runat="server"/>
                </div>
    </div>
    <uc1:UC_pages ID="pagerTop" runat="server" />
     <table class="tables">
        <thead>
            <tr class="trs">
                <th class="cid">
                    <input type="checkbox" id="chkAll" />#
                </th>
                <th class="names">
                    Tên Quận Huyện
                </th>
                <th class="names">
                    ID
                </th>
                <th class="names">
                    ID Tỉnh TP
                </th>
            </tr>
        </thead>
        <asp:Repeater runat="server" ID="repQuanHuyen">
            <ItemTemplate>
                <tr>
                    <td>
                        <input type="checkbox" name="Id" value='<%#Eval("IDQuanHuyen") %>' id="Id" />
                    </td>
                    <td>
                        <a href='EditQuanHuyen.aspx?Id=<%#Eval("IDQuanHuyen") %>'>
                            <%#Eval("TenQuanHuyen")%></a>
                    </td>
                    <td>
                        <%#Eval("IDQuanHuyen")%>
                    </td>

                    <td>
                            <%#Eval("IDTinhTP")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <uc1:UC_pages ID="pagerBottom" runat="server" />
</div>

